let ENV = "production"; // production or test
// let ENV = "test";
let config = {};
let productionConfig =  {
	apiServer: { //apiServer的对内和对外访问地址
		internal: "https://appapi.rfchina.com:9010/v1",
		public: "https://appapi.rfchina.com:9010/v1"
	}
};
let testConfig = {
	apiServer: { //apiServer的对内和对外访问地址
		internal: "https://apptest_api.rfchina.com:9010/api/v1",
		public: "https://apptest_api.rfchina.com:9010/api/v1"
	}
}
config = (ENV == "production")?productionConfig:testConfig;
config.apiServer.public = config.apiServer.public.replace(new RegExp("/+$"), "");
config.apiServer.internal = config.apiServer.internal.replace(new RegExp("/+$"), "");

module.exports = {
	config,
	ENV
};